







[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Creates a sorted version of a collection.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public static T[] Sort<T>( IEnumerable<T> collection ) where T : IComparable<T> |
Visual Basic (Declaration) |
---|
Public Shared Function Sort(Of T As IComparable(Of T)) ( _ collection As IEnumerable(Of T) _ ) As T() |
Visual C++ |
---|
public: generic<typename T> where T : IComparable<T> static array<T>^ Sort ( IEnumerable<T>^ collection ) |
Parameters
- collection
- IEnumerable<(Of <T>)>
The collection to sort.
Return Value
An array containing the sorted version of the collection.
Type Parameters
- T
Remarks
Values are compared by using the IComparable<T>
interfaces implementation on the type T.
See Also
Algorithms Class
Wintellect.PowerCollections Namespace